package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.NormalAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 进入特定区域
 *
 * @author wenjie
 * @date 2024-05-31 10:24:42
 */
@Data
@TableName("sp_access_specific")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "进入特定区域")
public class SpAccessSpecificEntity extends Model<SpAccessSpecificEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    @Schema(description = "进入场所所在省（区、市）")
    private String sqjrszs;

    @Schema(description = "进入场所所在地（市、州）")
    private String sqjrszds;

    @Schema(description = "进入场所所在县（市、区）")
    private String sqjrszxq;

    @Schema(description = "进入场所所在（乡镇、街道）")
    private String sqjrszd;

    /**
     * 申请进入场所
     */
    @Schema(description = "申请进入场所")
    private String sqjrcs;

    /**
     * 申请时间
     */
    @Schema(description = "申请时间")
    private LocalDateTime sqsj;

    /**
     * 申请进入时间
     */
    @Schema(description = "申请进入时间")
    private LocalDateTime sqjrrq;

    /**
     * 申请离开时间
     */
    @Schema(description = "申请离开时间")
    private LocalDateTime sqjsrq;

    /**
     * 申请理由
     */
    @Schema(description = "申请理由")
    private String sqly;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 先前的审核动作（状态）
     */
    @Schema(description = "先前的审核动作（状态）")
    private NormalAuditActionStatusEnum preAction;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}